<?php

/*
 *	Framework namespace
 */
namespace Nano
{
	/*
	 *	XML class
	 */
	class XML
	{
		/*
		 *	Parse XML string
		 *
		 *	@param	string	XML string to parse
		 *
		 *	@return	array	Parsed XML
		 *
		 *	@static
		 */
		static public function parse($string)
		{
			$xml = simplexml_load_string($string);
			
			return (array)$xml;
		}
	}
}